package com.anycl.design.behavioral.command;

/**
 * 请求者类
 */
public class Invoker {

    private Command command;

    public Invoker(Command command) {
        this.command = command;
    }
    // 请求方法
    public void action() {
        this.command.execute();
    }
}
